<?php
/**
 * Created by PhpStorm.
 * User: cc
 * Date: 2022/1/20
 * Time: 11:32 上午
 */

namespace App\Models\CacheModel\live;

use App\Models\Api\BaseCache;

/**
 * Class LiveAnswerScore
 * @package App\Models\CacheModel\live
 */
class LiveAnswerScore extends BaseCache
{
    protected $table = 'wechat_backup_07_18_14_43_00.live_answer_score';

    /**
     * 添加评价
     * @param $data
     * @return int|string
     */
    public function saveData($data)
    {
        try
        {
            $id = $this->insertGetId($data);
        }
        catch (\Exception $e)
        {
            $id = 0;
        }
        return $id;
    }
}
